package com.bjsxt.creat1;

public class TestThread {

    public static void main(String[] args) {

        //创建并启动乌龟线程
        Runnable r = new TortoiseRunnable();
        Thread t = new Thread(r);
        t.start();


        //兔子也在跑
        while (true) {
            System.out.println("兔子领先了，加油！ " + Thread.currentThread().getName() + "  "
                    + Thread.currentThread().getPriority()
            );
        }
    }
}
